# -*- coding: cp1252 -*-
#Boa:MDIChild:cadCompras

import wx
from _Pessoas import *
from _Control import *


def create(parent):
    return cadCompras(parent)

[wxID_CADCOMPRAS, wxID_CADCOMPRASBUTTON1, wxID_CADCOMPRASBUTTON10, 
 wxID_CADCOMPRASBUTTON2, wxID_CADCOMPRASBUTTON3, wxID_CADCOMPRASBUTTON4, 
 wxID_CADCOMPRASBUTTON5, wxID_CADCOMPRASBUTTON6, wxID_CADCOMPRASBUTTON7, 
 wxID_CADCOMPRASBUTTON8, wxID_CADCOMPRASBUTTON9, wxID_CADCOMPRASCH_STATUS, 
 wxID_CADCOMPRASPANEL1, wxID_CADCOMPRASSTATICBOX1, wxID_CADCOMPRASSTATICBOX2, 
 wxID_CADCOMPRASSTATICBOX3, wxID_CADCOMPRASSTATICTEXT1, 
 wxID_CADCOMPRASSTATICTEXT2, wxID_CADCOMPRASSTATICTEXT3, 
 wxID_CADCOMPRASSTATICTEXT4, wxID_CADCOMPRASSTATICTEXT5, 
 wxID_CADCOMPRASSTATICTEXT6, wxID_CADCOMPRASSTATICTEXT7, 
 wxID_CADCOMPRASTX_CODIGO, wxID_CADCOMPRASTX_DATA, wxID_CADCOMPRASTX_ID, 
 wxID_CADCOMPRASTX_NOME, wxID_CADCOMPRASTX_VALORTOTAL, 
 wxID_CADCOMPRASTX_VENCIMENTO, 
] = [wx.NewId() for _init_ctrls in range(29)]

class cadCompras(wx.MDIChildFrame):
   
    def _init_ctrls(self, prnt):
        # generated method, don't edit
        wx.MDIChildFrame.__init__(self, id=wxID_CADCOMPRAS, name='cadCompras',
              parent=prnt, pos=wx.Point(472, 65), size=wx.Size(800, 650),
              style=wx.DEFAULT_FRAME_STYLE,
              title='Compras - Entrada de Mercadoria')
        self.SetClientSize(wx.Size(784, 612))
        self.SetForegroundColour(wx.Colour(0, 0, 0))
        self.SetBackgroundStyle(wx.BG_STYLE_COLOUR)
        self.SetBackgroundColour(wx.Colour(117, 186, 255))
        self.SetAutoLayout(False)
        self.SetToolTipString('cadCompras')
        self.SetMinSize(wx.Size(800, 650))
        self.SetMaxSize(wx.Size(800, 650))
        self.SetHelpText('')
        self.Show(True)

        self.panel1 = wx.Panel(id=wxID_CADCOMPRASPANEL1, name='panel1',
              parent=self, pos=wx.Point(0, 0), size=wx.Size(784, 612),
              style=wx.TAB_TRAVERSAL)

        self.staticBox1 = wx.StaticBox(id=wxID_CADCOMPRASSTATICBOX1,
              label='Compra', name='staticBox1', parent=self.panel1,
              pos=wx.Point(0, 0), size=wx.Size(672, 472), style=0)

        self.staticBox2 = wx.StaticBox(id=wxID_CADCOMPRASSTATICBOX2,
              label='Pesquisa de Compras', name='staticBox2',
              parent=self.panel1, pos=wx.Point(0, 472), size=wx.Size(784, 136),
              style=0)

        self.staticBox3 = wx.StaticBox(id=wxID_CADCOMPRASSTATICBOX3,
              label='Botoes', name='staticBox3', parent=self.panel1,
              pos=wx.Point(680, 0), size=wx.Size(104, 472), style=0)

        self.button1 = wx.Button(id=wxID_CADCOMPRASBUTTON1, label='&Inserir',
              name='button1', parent=self.panel1, pos=wx.Point(696, 16),
              size=wx.Size(75, 23), style=0)

        self.button2 = wx.Button(id=wxID_CADCOMPRASBUTTON2, label='&Salvar',
              name='button2', parent=self.panel1, pos=wx.Point(696, 48),
              size=wx.Size(75, 23), style=0)

        self.button3 = wx.Button(id=wxID_CADCOMPRASBUTTON3, label='&Cancelar',
              name='button3', parent=self.panel1, pos=wx.Point(696, 80),
              size=wx.Size(75, 23), style=0)

        self.button4 = wx.Button(id=wxID_CADCOMPRASBUTTON4, label='&Alterar',
              name='button4', parent=self.panel1, pos=wx.Point(696, 112),
              size=wx.Size(75, 23), style=0)

        self.button5 = wx.Button(id=wxID_CADCOMPRASBUTTON5, label='&Imprimir',
              name='button5', parent=self.panel1, pos=wx.Point(696, 144),
              size=wx.Size(75, 23), style=0)

        self.button6 = wx.Button(id=wxID_CADCOMPRASBUTTON6, label='&Excluir',
              name='button6', parent=self.panel1, pos=wx.Point(696, 176),
              size=wx.Size(75, 23), style=0)

        self.button7 = wx.Button(id=wxID_CADCOMPRASBUTTON7,
              label='Entrada S&p.', name='button7', parent=self.panel1,
              pos=wx.Point(696, 240), size=wx.Size(75, 23), style=0)

        self.button8 = wx.Button(id=wxID_CADCOMPRASBUTTON8,
              label='Entrada &Fin', name='button8', parent=self.panel1,
              pos=wx.Point(696, 272), size=wx.Size(75, 23), style=0)

        self.button9 = wx.Button(id=wxID_CADCOMPRASBUTTON9, label='&Fechar',
              name='button9', parent=self.panel1, pos=wx.Point(696, 440),
              size=wx.Size(75, 23), style=0)

        self.staticText1 = wx.StaticText(id=wxID_CADCOMPRASSTATICTEXT1,
              label='Codigo', name='staticText1', parent=self.panel1,
              pos=wx.Point(8, 24), size=wx.Size(34, 13), style=0)

        self.tx_codigo = wx.TextCtrl(id=wxID_CADCOMPRASTX_CODIGO,
              name='tx_codigo', parent=self.panel1, pos=wx.Point(8, 40),
              size=wx.Size(56, 21), style=0, value='')

        self.staticText2 = wx.StaticText(id=wxID_CADCOMPRASSTATICTEXT2,
              label='Data emis.', name='staticText2', parent=self.panel1,
              pos=wx.Point(72, 24), size=wx.Size(52, 13), style=0)

        self.tx_data = wx.TextCtrl(id=wxID_CADCOMPRASTX_DATA, name='tx_data',
              parent=self.panel1, pos=wx.Point(72, 40), size=wx.Size(56, 21),
              style=0, value='')

        self.tx_id = wx.TextCtrl(id=wxID_CADCOMPRASTX_ID, name='tx_id',
              parent=self.panel1, pos=wx.Point(144, 40), size=wx.Size(56, 21),
              style=0, value='')

        self.staticText3 = wx.StaticText(id=wxID_CADCOMPRASSTATICTEXT3,
              label='id Pessoa', name='staticText3', parent=self.panel1,
              pos=wx.Point(144, 24), size=wx.Size(46, 13), style=0)

        self.staticText4 = wx.StaticText(id=wxID_CADCOMPRASSTATICTEXT4,
              label='Nome/Raz\xe3o Social', name='staticText4',
              parent=self.panel1, pos=wx.Point(200, 24), size=wx.Size(92, 13),
              style=0)

        self.tx_nome = wx.TextCtrl(id=wxID_CADCOMPRASTX_NOME, name='tx_nome',
              parent=self.panel1, pos=wx.Point(200, 40), size=wx.Size(296, 21),
              style=0, value='')

        self.button10 = wx.Button(id=wxID_CADCOMPRASBUTTON10, label='&P',
              name='button10', parent=self.panel1, pos=wx.Point(496, 40),
              size=wx.Size(24, 23), style=0)

        self.staticText5 = wx.StaticText(id=wxID_CADCOMPRASSTATICTEXT5,
              label='Vencimento', name='staticText5', parent=self.panel1,
              pos=wx.Point(528, 24), size=wx.Size(56, 13), style=0)

        self.tx_vencimento = wx.TextCtrl(id=wxID_CADCOMPRASTX_VENCIMENTO,
              name='tx_vencimento', parent=self.panel1, pos=wx.Point(528, 40),
              size=wx.Size(56, 21), style=0, value='')

        self.tx_valorTotal = wx.TextCtrl(id=wxID_CADCOMPRASTX_VALORTOTAL,
              name='tx_valorTotal', parent=self.panel1, pos=wx.Point(592, 40),
              size=wx.Size(72, 21), style=0, value='')

        self.staticText6 = wx.StaticText(id=wxID_CADCOMPRASSTATICTEXT6,
              label='Valor Total', name='staticText6', parent=self.panel1,
              pos=wx.Point(592, 24), size=wx.Size(52, 13), style=0)

        self.ch_status = wx.Choice(choices=['Pendente', 'Processada'],
              id=wxID_CADCOMPRASCH_STATUS, name='ch_status', parent=self.panel1,
              pos=wx.Point(8, 88), size=wx.Size(130, 21), style=0)

        self.staticText7 = wx.StaticText(id=wxID_CADCOMPRASSTATICTEXT7,
              label='Status', name='staticText7', parent=self.panel1,
              pos=wx.Point(8, 72), size=wx.Size(32, 13), style=0)

    def __init__(self, parent):
        self._init_ctrls(parent)    

